# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-rpio
_pkgname=RPIO
pkgver=0.10.1
pkgrel=7
pkgdesc="GPIO toolbox for the Raspberry Pi"
options="!check" # No testsuite
url="https://github.com/metachris/RPIO"
arch="all"
license="LGPL-3.0-or-later"
makedepends="py3-setuptools python3-dev"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/metachris/RPIO/archive/v$pkgver.tar.gz
	missing-typesh.patch"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-rpio" # Backwards compatibility
provides="py-rpio=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="47243abb5fa05a019e5de851035cf4d3e2d00b7ebb58fee86e3d89dc5ab4f4938c387d1824a721887a59706d0b401742c709ae53730f09cd021a224eddcd09c4  py3-rpio-0.10.1.tar.gz
e2da1911e2e917898f76f9bfd09e85378bff8745691e5a4890e51f821b59762262593e954afc19b586952e9072098b79caba224ae38add71e7d6b2299a9c8c83  missing-typesh.patch"
